package grape.house.rest.client.estatealbum;

import grape.common.service.trans.ITransService;
import grape.house.rest.estatealbum.vo.EstateAlbumVo;
import grape.house.service.estatealbum.po.EstateAlbum;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * Created by yangwei
 * Created at 2020/9/27
 */
@Component
@FeignClient(value = "grape-house")
public interface EstateAlbumClient extends ITransService<String,String> {


    @GetMapping(value = "/house/estatealbum/inner/trans")
    @Override
    public String trans(@RequestParam String type, @RequestParam String key);

    @GetMapping(value = "/house/estatealbum/inner/trans/support")
    @Override
    public boolean support(@RequestParam String type);

    @GetMapping("/house/estatealbum/inner/getEstateAlbumById")
    public EstateAlbum getEstateAlbumById(@RequestParam String id);


    @GetMapping("/house/estatealbum/inner/getEstateAlbumVoById")
    public EstateAlbumVo getEstateAlbumVoById(@RequestParam String id);

    
    @GetMapping("/house/estatealbum/inner/getEstateAlbumByEstateId")
    public List<EstateAlbum> getEstateAlbumByEstateId(@RequestParam String estateId);

    @GetMapping("/house/estatealbum/inner/getByEstateIdAndPropertyTypeId")
    public List<EstateAlbum> getByEstateIdAndPropertyTypeId(@RequestParam String estateId,@RequestParam String propertyTypeId);

}
